public class Demo2 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            while (true) {
                System.out.println("线程执行中……");
            }
        });
        thread.start();
    }
}
